home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / free_browsing / DavesQckSearchDbar3-14 / dqsd.exe / searches / sf.xml < prev    next >
Text File  |  2002-08-30  |  3KB  |  81 lines

  1. <search function="sf">
  2.   <name>Sourceforge.net</name>
  3.   <description>
  4.     Search or go to open source projects on SourceForge.net.<br/>
  5.     <div class="helpboxDescLabels">Switches:</div>
  6.     <table class="helpboxDescTable">
  7.       <tr><td>/software [default]</td><td> - </td><td>Software</td></tr>
  8.       <tr><td>/new</td><td> - </td><td>New Releases</td></tr>
  9.       <tr><td>/people</td><td> - </td><td>People</td></tr>
  10.       <tr><td>/freshmeat</td><td> - </td><td>Freshmeat.net</td></tr>
  11.       <tr><td>/project</td><td> - </td><td>Project's summary page</td></tr>
  12.       <tr><td>/cvs</td><td> - </td><td>Browse project's CVS repository</td></tr>
  13.     </table>
  14.     <div class="helpboxDescLabels">Examples:</div>
  15.     <table class="helpboxDescTable">
  16.       <tr><td>sf itext</td></tr>
  17.       <tr><td>sf /proj dqsd</td></tr>
  18.       <tr><td>sf /cvs dqsd</td></tr>
  19.     </table>
  20.   </description>
  21.   <category>Computers</category>
  22.   <link>http://www.sourceforge.net/</link>
  23.   <contributor>Brent Beardsley</contributor>
  24.   
  25.   <form name="sfsearch"
  26.         action="http://sourceforge.net/search/"
  27.         method="post">
  28.     <input type="hidden" name="words"/>
  29.     <input type="hidden" name="type_of_search"/>
  30.   </form>
  31.   
  32.   <script><![CDATA[
  33.     function sf(q)
  34.     {
  35.       if( nullArgs("sf", q) )
  36.         return false;
  37.  
  38.       var args = parseArgs(q, "new, software, people, freshmeat, project, cvs");
  39.       if( q == "" )
  40.         openSearchWindow("http://www.sourceforge.net/");
  41.       else if( args.switches.length == 1 )
  42.       {
  43.         switch( args.switches[0].name )
  44.         {
  45.           case "new":
  46.             openSearchWindow("http://www.sourceforge.net/new/"); return false;
  47.           case "software":
  48.             document.sfsearch.type_of_search.value = "soft"; break;
  49.           case "people":
  50.             document.sfsearch.type_of_search.value = "people"; break;
  51.           case "freshmeat":
  52.             document.sfsearch.type_of_search.value = "freshmeat"; break;
  53.           case "project":
  54.             openSearchWindow("http://sourceforge.net/projects/" + args.q); return false;
  55.           case "cvs":
  56.             openSearchWindow("http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/" + args.q); return false;
  57.           default:
  58.             document.sfsearch.section.value = args.switches[0].name; break;
  59.         }
  60.         document.sfsearch.words.value = args.q;
  61.         submitForm(sfsearch);
  62.       }
  63.       else if( args.switches.length > 1 )
  64.         nullArgs("sf","?");
  65.       else
  66.       {
  67.         document.sfsearch.type_of_search.value = "soft";
  68.         document.sfsearch.words.value = args.q;
  69.         submitForm(sfsearch);
  70.       }
  71.     }
  72.   ]]></script>
  73.  
  74.   <copyright>
  75.     Copyright (c) 2002 David Bau
  76.     Distributed under the terms of the
  77.     GNU Public License, Version 2 (http://www.gnu.org/copyleft/gpl.txt)
  78.   </copyright>
  79. </search>
  80.  
  81.